#ifndef OBSTAREDIBLE_H
#define OBSTAREDIBLE_H

#include "ObDynamic.h"
#include "d3dx9.h"

class ObStarEdible: public ObDynamic{
public:
	ObStarEdible(IDirect3DTexture9* mtex, float px, float py);
	~ObStarEdible();

	void collidedWith(ObObject* object, CollisionRS rs);
	void update(float dt);
	void render(ID3DXSprite* mSprite);
	void clear();

private:
	float count;

	IDirect3DTexture9*	mTex;
	RECT				mRECT;
	
	int mCurrentSprite;
	float topCount;
	float flyCount;
	bool canMove;
};

#endif